//
// Created by zhp on 2025/7/17.
//
#include "Father.h"
#include "Mother.h"
#include "Kid.h"
#include <iostream>

// 运算符重载
Kid operator+(const Father &a, const Mother &b) {
    return {0, a.name + " . " + b.name};
}

int main() {
    Father f("jack");
    Mother m("rose");
    Kid k = f + m;
    std::cout << "age: "
              << k.age
              << std::endl
              << "name: "
              << k.name
              << std::endl;


}

